import req from './request.js'

export const list = (param) => {
    return req.get('/api/ip/list', {params: param})
}

export const listLog = (param) => {
    return req.get('/api/ip/log', {params: param})
}

export const add = (param) => {
    return req.post('/api/ip/add', param)
}

export const update = (param) => {
    return req.post('/api/ip/update', param)
}

export const del = (port) => {
    return req.post('/api/ip/delete', {port})
}

export const get = (port) => {
    return req.get('/api/ip/get', {params: {port}})
}